package cn.edu.ctbu.sbadmin.grade.api;

import cn.edu.ctbu.sbadmin.common.controller.BaseRestController;
import cn.edu.ctbu.sbadmin.common.utils.R;
import cn.edu.ctbu.sbadmin.grade.domain.DimAudStatesDO;
import cn.edu.ctbu.sbadmin.grade.service.DimAudStatesService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/grade/dimaudstates")
@Slf4j
@Api(value = "审核状态", tags = {"审核状态"})
public class DimAudStatesRestController extends BaseRestController {
    @Autowired
    DimAudStatesService dimAudStatesService;

    @RequestMapping("/getAll")
    public R getAll(){
        List<DimAudStatesDO> dimAudStatesDOS = dimAudStatesService.getAll();
        return R.ok("data",dimAudStatesDOS);
    }

}
